package com.huawei.updatesdk.service.a;

import com.huawei.updatesdk.a.a.c.b.b;
import com.huawei.updatesdk.a.b.a.a;
import com.huawei.updatesdk.a.b.d.a.c;

public class e extends c {
    private String clientPackage_ = null;
    private String cno_ = null;
    private String code_ = null;
    private boolean isSerial = false;
    private int isUpdateSdk_ = 1;
    private String locale_ = null;
    private boolean needSign = true;
    private String net_ = null;
    private int serviceType_ = 0;
    private String sign_ = null;
    private String thirdId_ = null;
    private String ts_ = null;

    public e() {
        o(a.a().d());
        d(a.a().b().getPackageName());
    }

    private void d(String str) {
        this.clientPackage_ = str;
    }

    private void e(String str) {
        this.net_ = str;
    }

    private void f(String str) {
        this.cno_ = str;
    }

    private void g(String str) {
        this.ts_ = str;
    }

    private void h(String str) {
        this.code_ = str;
    }

    private void i(String str) {
        this.thirdId_ = str;
    }

    public void a(boolean z) {
        this.needSign = z;
    }

    public void b(boolean z) {
        this.isSerial = z;
    }

    public void c() {
        g(String.valueOf(System.currentTimeMillis()));
        e(String.valueOf(b.c(a.a().b())));
        i(a.a().f());
        f("4010002");
        h("0500");
    }

    public boolean g() {
        return this.needSign;
    }

    public boolean h() {
        return this.isSerial;
    }

    public void o(String str) {
        this.sign_ = str;
    }

    public void p(String str) {
        this.locale_ = str;
    }

    public void q(String str) {
        o(str);
    }

    public String toString() {
        return getClass().getName() + " {\n\tmethod_: " + a() + "\n}";
    }
}
